﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Project.Model.EF6.Base;
using Project.Model.EF6.Enum;
using Newtonsoft.Json;

namespace Project.Model.EF6.Entity
{
    [Table("T_SGM_XLW_ACTIVE_CONFIG")]

    public class ActiveConfig : ModelBase
    {
        [Key]
        public int ID { get; set; }

        [StringLength(50)]
        [Column(TypeName = "varchar2")]
        public string PROVINCE { get; set; }
        public int DAY_MAX_COUNT { get; set; }
        public int DAY_NEED_LOCAT_COUNT { get; set; }
        public int NEED_MOBILE_COUNT { get; set; }
        public string ROW_STATUS { get; set; }

        [StringLength(30)]
        [Column(TypeName = "varchar2")]
        public string ROW_CREATE_USER { get; set; }

        [StringLength(30)]
        [Column(TypeName = "varchar2")]
        public string ROW_UPDATE_USER { get; set; }
        public int WINNING_NUMBER { get; set; }//每日中奖次数
        public int IS_WINNING { get; set; }//达到中奖次数后的次数是否中奖（0：否；1：是）
        [JsonIgnore]
        public virtual ICollection<ActiveRecord> ActiveRecord { get; set; }
        [JsonIgnore]
        public virtual ICollection<SalesRecord> SalesRecord { get; set; }
        [NotMapped]
        public BoolShow BoolShow { get; set; }
    }
}
